package com.app.designpattern.designprinciples.openclose

/**
 *
 * USER: zjw
 * DATA: 2019/4/4 0004
 * TIME: 下午 2:42
 */
class AndroidDiscountBook(id: Int, name: String, price: Double) : AndroidBook(id, name, price) {

    fun getDiscountPrice(): Double {
        return super.getPrice() * 0.8
    }
}

